#include "Circle.h"

Circle::Circle()
{
  this->radius = 1;
}

Circle::Circle(double radius)
{
  this->radius = radius;
}

double Circle::getRadius()
{
  return radius;
}

void Circle::setRadius(double radius)
{
  this->radius = (radius >= 0) ? radius : 0;
}

double Circle::getArea()
{
  return PI * radius * radius;
}
